[Cases] Add Lens markdown plugin#96703
Conversation
|
This looks awesome Patryk! We are going to be merging the It would be awesome if you could either open this PR against that |
|
Thank you for the heads up @stephmilovic :) |
|
well i cant wait to get it merged, it looks really cool!! |
|
hi! these are my initial comments based only on the video. Comments:
Clarification:
|
…ns-markdown-plugin # Conflicts: # x-pack/plugins/security_solution/public/common/components/markdown_editor/plugins/index.ts
|
@elasticmachine merge upstream |
Lens Cases UI
| }); | ||
| }); | ||
|
|
||
| describe('extractLensReferencesFromCommentString', () => { |
There was a problem hiding this comment.
great job on these tests, very helpful
| const [nodePosition, setNodePosition] = useState<EuiMarkdownAstNodePosition | undefined>( | ||
| undefined | ||
| ); | ||
| // const [editMode, setEditMode] = useState(!!node); |
|
|
||
| const savedObjectMetaData = useMemo( | ||
| () => [ | ||
| { |
There was a problem hiding this comment.
this all looks static, no props? can move outside of component to a plain const
| </EuiText> | ||
| </EuiFlexItem> | ||
| <EuiFlexItem grow={false}> | ||
| {viewMode && canUseEditor() ? ( |
There was a problem hiding this comment.
i think we can put canUseEditor in a useMemo?
| isDisabled={!canUseEditor()} | ||
| onClick={handleClick} | ||
| > | ||
| {`Open visualization`} |
| <EuiSpacer size="xs" /> | ||
|
|
||
| <EmbeddableComponent | ||
| id="" |
stephmilovic
left a comment
There was a problem hiding this comment.
Just a few nits and the bugs we discussed over zoom. Remember to add validation to the Visualization Title! LGTM
…ns-markdown-plugin # Conflicts: # x-pack/plugins/security_solution/public/common/components/markdown_editor/editor.tsx
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsAPI count
API count missing comments
async chunk count
Non-exported public API item count
History
To update your PR or re-run it, just comment with: |
adamwdraper
left a comment
There was a problem hiding this comment.
Summary of sync meeting today between @patrykkopycinski @paulewing @yiyangliu9286 @adamwdraper
Current design as implemented in this pr is not ready to be released as is. It requires iteration of ux to fix UI bugs and align with EUI guidelines. This pr will be merged, but will be behind a feature flag. This feature flag must default to off, unless the new ux is finalized and delivered, and @yiyangliu9286 or @adamwdraper approve the ux matches designs.
Next Steps:
- @yiyangliu9286 to make ux adjustments
- @yiyangliu9286 to sync with @patrykkopycinski to agree on the final design
- @patrykkopycinski will implement finalized ux
- @yiyangliu9286 or @adamwdraper signoff before feature flag is enabled
💔 Backport failed
To backport manually run: |
|
@patrykkopycinski Please see design followup issue: #109121 (cc: @adamwdraper @paulewing) |
# Conflicts: # x-pack/plugins/observability/public/components/shared/exploratory_view/header/header.test.tsx # x-pack/plugins/observability/public/components/shared/exploratory_view/header/header.tsx # x-pack/plugins/observability/public/plugin.ts

Summary
Untitled_.Apr.9.2021.7_17.PM.mp4
Design links
Whimsical wireframe
Figma
TODO in the follow up PR:
Open in Lensjust for the preview (disable Save button)